<script setup lang="ts">
import router from "../config/route";

const onClickBack = () => {
  // 返回原来页面
  router.push('/');
};
</script>
<template>
  <div class="error">
    <!-- 错误页 -->
    <el-result
      icon="error"
      title="错误"
      sub-title="请联系管理员"
    >
      <template #extra>
        <el-button @click="onClickBack" type="primary">返回主页</el-button>
      </template>
    </el-result>
  </div>
</template>
<style scoped>
.error {
  margin: -10px;
  background-color: #fff;
}
</style>
